package com.three.dao;

import com.three.domain.Departments;
import com.three.domain.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentsDao {
    public int pageCountDepartments(@Param("keyword") String keyword);
    public List<Departments> departmentsList(@Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize, @Param("keyword") String keyword);
    public int addDepartments(Departments departments);
    public int updateDepartments(Departments departments);
    public int deleteDepartments(Integer department_id);

    public List<Users> List();
}
